package cn.bdqn.mapper;

import cn.bdqn.pojo.UserDoctorArticle;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface UserDoctorArticleMapper {
    /***
     * 根据条件查询用户收藏记录
     * @param map 查询条件
     * @return
     * @throws Exception
     */
    UserDoctorArticle selectUserLikeArticleByQuery(Map map)throws Exception;

    /***
     * 添加用户收藏记录
     * @param userDoctorArticle
     * @return
     * @throws Exception
     */
    int insertUserLikeArticle(UserDoctorArticle userDoctorArticle)throws Exception;

    /***
     * 修改收藏状态
     * @param userDoctorArticle
     * @return
     * @throws Exception
     */
    int updateUserLikeArticleByQuery(UserDoctorArticle userDoctorArticle) throws Exception;

}